from google.appengine.ext.webapp.util import run_wsgi_app
from framework.router import WSGIRouter
from controllers.home import *

router = WSGIRouter()
router.connect('/', HomeHandler())
router.connect('/game/{gameType}/create', CreateNewGameHandler())
router.connect('/game/{gameType}/{id}/join', JoinGameHandler())
router.connect('/game/{gameType}/{id}/move', MoveGameHandler())
router.connect('/game/{gameType}/{id}/refresh', RefreshGameHandler())

def main():
	run_wsgi_app(router)

if __name__ == "__main__":
	main()
